﻿package lobby
{
	import flash.display.MovieClip;
	import flash.display.SimpleButton;
	import flash.events.MouseEvent;
	import flash.text.TextField;
	import flash.ui.Mouse;
	import lobby.events.LobbyEvent;
	import lobby.GlobalVariables;
	import lobby.exchangeddata.HashTable;
	import lobby.events.LobbyEvent;
	
	/**
	 * ...
	 * @author David
	 */
	public class CurrencyIconPanel extends MovieClip
	{
		public function CurrencyIconPanel()
		{
		
		}
		
		public function setCurrencyIncon(str:String):void
		{
			switch (str)
			{
				case "USD": 
					gotoAndStop("usDollar")
					break;
				
				case "SGD": 
					gotoAndStop("singDollar")
					break;
				
				case "HKD": 
					gotoAndStop("hkDollar")
					break;
				
				case "TWD": 
					gotoAndStop("twDollar")
					break;
				
				case "CAD": 
					gotoAndStop("canadaDollar")
					break;
				
				case "PHP": 
					gotoAndStop("phillippinePeso")
					break;
				
				case "KRW": 
					gotoAndStop("koreanWon")
					break;
				
				case "THB": 
					gotoAndStop("thaiBaht")
					break;
				
				case "CNY": 
					gotoAndStop("chinaYuan")
					break;
				
				case "MYR": 
					gotoAndStop("malaiRingit")
					break;
				
				case "EUR": 
					gotoAndStop("Euro")
					break;
				
				case "PTS": 
					gotoAndStop("usDollar")
					break;
				
				case "JPY": 
					gotoAndStop("japanYen")
					break;
				
				case "IDR": 
					gotoAndStop("indoRp")
					break;
				
				case "GBP": 
					gotoAndStop("britishPound")
					break;
				
				case "INR": 
					gotoAndStop("indianRup")
					break;
				
				default: 
					gotoAndStop("defaultCur")
					break;
			
			}
		}
	}
}

